import request from '@/utils/request'
import { ObjectType, ResponseDataPromise } from 'typings/interfaces'
import * as proxy from '@/constants/proxy'
import { Pagination } from '@/components/Records/types'
import axios from 'axios'
import { getToken } from '@/utils/auth'
export interface Params extends ObjectType {
  goodsType?: string
  goodsName?: string
}

//项目列表
export const projectManagementListPage = (data: Params): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CONTRACT_MANAGEMENT + `/projectManagement/listPage?current=${data.current}&size=${data.size}`,
    method: 'post',
    data,
  })
//合同列表
export const contractManagementListPage = (data: Params): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.CONTRACT_MANAGEMENT + '/htgl/contract-management/listPage',
    method: 'post',
    data,
  })
//科技业绩新增
export const kgptKjslTchieveSttransInsert = (data: Params): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.KGPTKJSLTECHIEVESTTRANS + '/insert',
    method: 'post',
    data,
  })

//科技业绩修改
export const kgptKjslTchieveSttransUpdate = (data: Params): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.KGPTKJSLTECHIEVESTTRANS + '/update',
    method: 'post',
    data,
  })
//双创活动业绩 承担单位 数据字典
export const undertakeunitDouble = (data: Params): ResponseDataPromise<ObjectType> =>
  request({
    url: proxy.KGPTKJSLTECHIEVEDOUBLE + '/undertakeunit',
    method: 'post',
    data,
  })
